<template>
	<view class="uni-container">
		<!-- <web-view src="http://192.168.2.14:8080/h5Chaint/"></web-view> -->
		<!-- <web-view src="http://192.168.2.14:8080/h5Chaint/?source=miniprogram"></web-view> -->
		<!-- <web-view src="http://s2.v3.hignton.com:9080/h5Chaint/"></web-view> -->
		<web-view src="https://devicecloud.chaint.net/h5Chaint/"></web-view>
	</view>
</template>

<script>
	export default {
		onLoad() {
			var currentWebview = this.$scope.$getAppWebview()
			setTimeout(() => {
				var wv = currentWebview.children()[0]
				wv.setStyle({
					top: plus.navigator.getStatusbarHeight(),
					height: uni.getSystemInfoSync().windowHeight - plus.navigator.getStatusbarHeight(),
					scalable: false
				})
			}, 1000)
		},
		onBackPress(e) {
		    this.$scope
		      .$getAppWebview()
		      .children()[0]
		      .back();
		    return true;
		}
	}
</script>

<style>
</style>